	import util from './../../../../../libs/util.js'
export default {
	namespaced: true,

	state() {
		return {
			mainId: null,

			primaryKey: null,

			mainId: null,

			// token: util.store.get('simple_mtn_token'),
			
			token: null,
			
			prefix_url: null,
		};
	},

	actions: {
		setMainId({ state }, mainId) {
			state.mainId = mainId;
		},

		setPrimaryKey({ state }, primaryKey) {
			state.primaryKey = primaryKey;
		},

		setToken({state}, token){
			if(token) util.store.set('simple_mtn_token', token)
			state.token = token;
		},
		
		setPrefixUrl({state}, prefix){
			state.prefix_url = prefix;
		}
	},
};
